add function to clean params