complete rccar function for one car