pitch function change