refactored formatted params in locl controller