uncommented error handling code