added tuple format to emit.c (for simulation)