remove variables duplication