complete friendship functionality