Men and women slaves were generally treated the same under most state laws. However, some states had laws that applied only to women slaves. For example, Virginia passed laws punishing women who had children by their masters. They also confirmed the slave status of any children born of a "Negro or mulatto women". Great Britain had a structured system whereby children claimed their lineage through their father. This also applied to illegitimate children (parents were not married). Virginia was the first colony to change this. Slave children were considered the same race and status as the mother, even if the child was fathered by a white man. Laws concerning rape did not apply to black and Indian women. A slave woman could not defend herself against the attack by a white person. If she did, she was subject to beatings. While it was illegal to have relations with a slave woman, the laws were not usually enforced. This system increased the wealth of slave owners. They did not have to buy slaves if they could breed their own.