adding time constraints