fixed ts and impletemented feature in index