modifiy rigid pitching plate routines to be more general