added user-input for cutoff frequency