replace 2 by variable