added support for printing states name