error controller remove unused method