simple method to read values from a channel