testing for the swp