finished custom location filtering