added complex where clause for phone