fixed the double bracket issue