deleting useless materials