improve transform_params
add regex