main code done, beginning to compile