added velocity calculation to data loader