removed unused constructor
sid -> index