add function in commonUtil