modify method equals