convert method working