working with oscilator