compartmentalized printing of output in cpu version