main methode