check for hermiticity