refactor use of args to params