removed unnecessary equality method