some useful codes