cleaning up library