added comments to review logic