removed border point calculation (unnecessary now)