added automated matlab prime calculation activation after IDL code