check pipe, commit optimization for hist