added speed controll