output is now a class