modif solution 3 + change constr rect