make some parameters 'const'