simplifying borders