refactor: change arguments order