need some params case function