add templates missing functions