function ends without a return statement