solve brewery issue