simplifying script