better write with border and style argument
some old code added