creates library