testing for classes -> better output