little changes in SPI Basic code