removing ambiguous variable reference