added error handling for args