changed order of script