added pitching functionality