add border to rect