added convert sample