main elem. formatting