some corrections in getting the lin velocity