including generic output method