convert sample