filter the locations