add const to methods not modify its arguments