removed heading/ending functions as cerr is used now