using channels incorrectly