modifying the program so that major and minor arms each have fitting parmaeters