example with params on define