use channel and remove encode fun