added checking for argc length