predictive lap time refactoring / optimizing