remove notes function