main code done, starting to compile