reorganize solution