added actual converting code :)