added comments to reverse