added sws mode