moved helpers into Formats trait