adding frequency visualisation