add spcode