update files and find good parameters