changed script order