restructured. began displayErrorMessage