remove pattern variable, as it is not used anymore