functions.h - templated updated: default types