correcting error in script