extract frequency