crack at removing constness