error function is provided by breeze