jiqi speed function added