small snipets which are useful