fixed compare script