improved code comments on helper template