implement error frame