cleanup variables template