added log and equal by id