rectangle corrections

rectangle corrections