nouvelle version du reshaping et resultats + modifications apportees a l'original pour conformite avec reinitialisation