OK I think I've resolved all the turning spatial function into spatial and temporal function stuff