What is $end error ? nt able to fix it