a simple tool that packing some common useful function