formula params refactoring