created method for gettting best r, t, theta