moved printing
removed print functions from compare