added makefrequencylist()