sample converter