check for brackets