replaced i with key