actually finally fixed the rename files method because I might end up using it