working out borders