refine swing demo