now with N input data