adding time code