changed back to Main method