add diag patch