removing unreachable code