mechanical coding