just clean up so that we are not mutating the outside scope