avoid deprecated get_mut call