template functions - removed eq.