implimented notes function