added comments for clarifification