another attempt at making the equals behavior finding logic work