added frequency selection