code might work, just testing freq input