added index
fixed fs issue