updated to use the square bracket syntax for fields/params