added function getKeys