add first last variable snippet