refactored CQCUtilities