trial-and-error procedure