main method type correction