edited notes. thanks @yao