separate code into MV structure.