fixed some bugs in the compiler, still have one bug in the tuple list