what is the meaning of the phrase means to an end?
something you do in order to achieve something else: For me, going to college is just a means to an end, a way to get a better job. (Definition of a means to an end from the Cambridge Academic Content Dictionary © Cambridge University Press)