const ref-ify the update functions