simplifying more scripts