timing cabs_single function and remove old cabs_single code