adding functionality for friendInformation