some errors removed from script