allow user to specify frequencies
now users can specify frequency