do not update hist if not enter or exit