code in sword to offer