added support for 90 degree rotatet header cells