dirty hack, values not equally spaced in time