changed compare script