modify the write condition