added comments, removed unnessecary