update to cpu

still need to implement offsets