changed array to tuples as parameters
working plots for reg