update script position