remove juvenile formatting
rename vars and make compare intuitive