removing unreachible code