collect some code that often use by me.