some piece of useful code tools