adding format properties.
need to rewrite text align method.
extract to other classes