tried to adapt the layout