check input frequencies