change the instruction memory to a version without state machine