added routines to test SPR1 idea