updated layout to fit array