fix repetant variable eliminated