Replaced sideA/sideB with invert property