add method in error message