check if pos < m_size