number of models as input and switching around order of stuff