fix main methode