#167. fixed update method; increased memory limit while update