prototyping radio function