tested the helper functions
tested helper functions

modified logic of the function. fixed errors. imported new json file as
test cases for visa check. commented out improper iterative codes. Left
index as int for further modification with main function