moved scripts to the bottom and fixed indentation