added outer loop files to control which function user wants to run