initial implementation of borderPopulation