implement get data by key