conpain_derive_main