fix brackets issues