add cpu old code