addressing memory issues causing non function

commented unused functions and print msg with function