all rectangle drawing cases accounted for