added SA and SD.   SD not working yet
working on bugs