simplifying scripts