various snipets