searchprofile functionality