added snippet preview