update time
remove memory