correcting script