update get_file_vec method using dict method