zbatery use least memory.