add 'const' to pointers