moved mod type test into get.params()