still having trouble with type converter