gui works with given file and get frequency is not tested