preliminary functions for combining libraries into one table