tested with 1d integration