used variables for exitcodes
used variables for exitcodes