main formatted