modified snippet