separate function for LM fit; method to return times to plot