correction for bug h26 h27 and removal of ptmax from h40,h41 toward