modify to auto determine x/t step