wrote initial conveter