better memory usage
need to print Sd