convert works as intended