a better way to display error.