swap out cbegin wieh begin