swap service var