finished backend searching thing