debugging define function

added ".params" to data object to reference input properly