change visibility for getting errors in model