changed check if error handle method is available