rename files correctly