adding friend conditions to normal search