reusing code from autos