set return value instead of undefined