modify log functions