integrating sim.factor into other functions