added speed vector generator