some changes for HOG channel