update get friends code