added a eq() function to evaluate equivalency of certain attributes, given by eqType argument