clarified variable names, removed magic number from discreteSteps