add a check so that multiple 'Delete math x' elements are not added