extend the  basic search function