error with params fixed