updated snippet for item