adding error state to save indicator