correct factor's encoding