fix constness