script for comparison upd