attempting to do some const correctness