fix return for MainMethod