corrections made in machine.c and helper_old functions