added check to not write duplicated descriptions