updated comments for clarity