brought back equals method