adds array key to getSelected for ease of use