added #ifdef to simple