added ciruclar functions to library