moved fitCES out of this file.