added third snippet