added the rest of the functions to the library