added a method to format with readers/writers