switch output arguments
update comments