added const to member function templates