edited main.h for conditional compiling