Some Miscellaneous fuction