remember to close the channel