reorganized main