declared_params refactored