add ruby for three brackets