formating NP table