user friendship function problems