getting bracket syntax correct