added better output print