velocity encoding