still has bug with machine code