removed hist_nd.pro cause it's not mine
removed code not mine