added velocity limits