moving cpp stateless