fixed obj comparison