updated index with proper syntax