take out debug code from simulator