added some functions to MiscTools