implemented basic convert