updated to correctly extract water velocity