some const correctness