added the ability to close both the front and the back of the channel