added in diag? functions