added function to get users within range