added checks so that non-friends are not freinds