changes to the main methode  seance 1