changed vel to float