applied histogram equalization to gatedetector and it works