hopefully fixed conversion code thing