givet format to layout