created way to know locality of user