The purpose of the paper is to study the uniqueness problem of an L function in the Selberg class sharing one or two sets with an arbitrary meromorphic function having only finitely many poles. We manipulate the notion of weighted sharing of sets to improve a result of Q.Q. Yuan, X.M. Li, and H.X. Yi [Value distribution of L-functions and uniqueness questions of F. Gross, Lith. Math. J., 58(2):249–262, 2018]. Most importantly, we have pointed out a number of logical shortcomings in the two results of P. Sahoo and S. Haldar [Results on L functions and certain uniqueness question of Gross, Lith. Math. J., 60(1):80–91, 2020]. As an attempt to rectify the results of Sahoo and Halder, we have improved them by presenting their accurate forms and proofs as far as practicable.