fixed main call