had to change equals to Object.equals