time index properly