template for callback function added