new layout
added min and max
improved formatting