added helm swoop function and sorted some lines