fixed bracket issues