updated comments for easier readability