changed script ordering