streamlining plotting and fitting macros