enhanced to handle speed3