updated comments for more clarity