scripts for analyzing and removing repeated locations