added comments for good measure