change convert function