check in interval_program for OSPi written by Dan