generate map will create undefined for unknown values