eliminate unnecessary state modification
amazingly this actually yields a few % performance improvement