add return to non-void function