restructure security