removes Pat.tpe