make defining formatter for sub-classes more readable