fix for factors: now working!