updated sam-to-bed conversion step