adde: function for SP
adde: function for SP