added checking for no-arguments