use offset in mem value