fixed some brackets