max(hist) ->median for find start