change convert methods to receive a parameter