adding comments for clarity