inversion (squares)