functional api in template :)