add the function of query the information of a key