trying to gain const correctness