correctly handles edited notes