Modification of the switching material