added frequency distribution