added pitches modal functionality