get replacement variables not in while