last changes to velocity prediction function before compile