more scripts, simplifying and reducing with iteration