changed some comments for easier understanding