some useful code, which construct this code library