update script but still need work.