changed argument of FormJf to accept ModeArray