added some notes, removed unnecessary console log