small changes to compare script