properly making a library of it