1. handled locality search