main metode fix