add functionality getFormat()