reduce undefines