got pitch working again after refactoring sample