changed parameterDec to parameterList
fixed bug where last } wasn't checked