renamed $params to $options