minor const correctness issue solved