cleaned up library