emit 0 for undef