dynamic number of friends