added rest and speed