factoring a bit