convert method
path not a str
MISSTAKE!
error fix