added constraints to command line inputs