modify constraint with respect of time