added type specification in channels.