defined equality on security domains
small clean up