testing template functions