adding which like function
add set_log