close #353 changed object == into a .equals call