layout code ready for logic