implementation of the layout
sync