optimize Determination.determine()