clean file directory, added upsample table