fix typo for params, should be param in line 1016