adding compare feature
fix style