working on spatiotemporal model