use equals prototype