compare curves