created a unified dea function (for input, output etc)