removed errors from script

need to write tests, aaah