varying the amplitude