added comments for templating