reduce duplicate vars