logpig added