created format object
created logical statements for populating format object