What is going on i don't understand!

Yep, you just need to have matching brackets for all brackets.