process fully factored, cleaning up; fixed typo in fmt1