formatting func spec