modified commonUtility