added check to confirm that the user is putting in the proper arguments