changed script order to see if it fixes problem