doing check for sequesntial and command line arguments