added setket and getkey methods