constify a couple of function arguments