added option to choose # of CAS