fixed updateParameters (data was represented in conflicting ways)