script to time back integration