wrote the function to set channels and the base to get the details
wrote the function to get the base channel