def returns the value instead of undefined, bumped version