now compiling with modified main