added code to validate arguments
test