make corrections to Shepard SRR code