adding a check for argument numbers