uncommented out factorization stuff