took out print statments and added comments