fix return in void function