working compiler with lots of redudnant codes