added normalizing of velocity