channel format after if exit