add const keywords where possible