enhanced to handle speed4