added many functions to SA