implement anchor-remembering