module re-arranging