worked on conversion and test functions