removed unecessary code from cpu.c