Almost there, computed hist is null, must fix this