Rearrange rules to follow top right bottom left convention