also working in 1d and even 4d :D