compare to replaced with equals