changed "main" method