snippy code used.