last working code, no gear