add some useful code