rename $key to $prop