layout procedure