updated return type of get names