add a file to put useful function I copied from somewhere