add const to functions