const where appropriate