add exception to handle file size.