use const where appropriate