re-factored code in sc-kpm; changed sc_types