use const modifier where appropriate