solving method not found error