start to add frame-to-frame memory in localization