added checking for amount of parameters and support for dynamical number of it (auto adding amount)