enumrate fixed to work with const containers