passing number of elements to both tools to keep last used value as default