changed some comments so the code is more understandable