added speed updating