working serach function for gender