if a function returns void and has a return statement, an error is thrown