avoid return in a void function