minor fix to parameter assignment