fixed issue #7: convert now works as intended