detect history movement