using parseFloat instead of parseInt for compatibility with playFrequency