RE factoring the code