add getFormats()
some style changes