separated methods to parse and convert
add unit test