add function with notes