fixed logical errors, skipped check for big files.