fixed bugs in time-dependent rates, finally working properly