notes and remove bad code