velocity calculations added