updating to correct snippet