group similar varibles together