some tool codes