add const reference snippet