added variables for error messages