finalize ssp and refactor cca