removed warning with new equals method