Put border into a function