a working version of convert command as well