made global the variable pointing to input/output directory