reorganized file size validation