checking arbitrary frequencies