added function to retrieve all note