changed update script