fixed the bracket problem