error outputs working