updated friend query