cleanup code, decrease swapon calls by using arrays