cleaned main.h