finished optimizer, now dead code removal