replaced handmade layout with latex environment