swing purpose