factorize for bcolz