change key from string to object