added comments and deleted methods