add function in library