comments edited for clarity