methods with more than 1 parameter required can now be checked and throw exception