modify applyWrite criteria