finished logic for finding notes, really this time.