moved around cpu code