fixed errors in script :(