fixed const corectness error