changed query in getNotesFo