changed rectangle to null