fixed equals methods

i messed up and didnt use object for the equals methods. fixed now.