better handling of borders around the letters