use const qualifier where appropriate