added some explanatory comments to the helper