update memory_piece