uncomented pitch function