cleaned scripts for readability