tried to fix the error of multiple border points