correcting error