extract finds peaks