return previous car function