to change into emulation code