The main function of a resonator is that it