refactoring params vars