add frequencies method