keep values for error handling