should remove stepSize since it's not actually used