revert const correctness