added missing const modifiers