catch and print error; compare
move comparison to class