some of the tone generation for testing