fixing unexpected type bug
refactored format_filename => changed flow: instead of (get all new names->rename all files) => (get next file->get new name->rename file->repeat)