removing non-lib material