added functionality to library.