update functiod based on time deltas added