Shaping of the borders added