attr-complement function implemented