Synthesis and in situ core reorganization of smart polymers