small change
begin to write sw algorithm