fixed bracket errors