properties to rect