small bug correction and implementation of mcq.get.id.for.factor