add: functions of sw