use chan instead of *chan