the could also do
arr[arr<10] = 245