fix for passing params