some work on output class