modified velocity controller